Check correct flag in grant transfer - this eliminates the most common
authorsmh22@firebug.cl.cam.ac.uk <smh22@firebug.cl.cam.ac.uk>
Sat, 5 Nov 2005 09:54:12 +0000 (10:54 +0100)
committersmh22@firebug.cl.cam.ac.uk <smh22@firebug.cl.cam.ac.uk>
Sat, 5 Nov 2005 09:54:12 +0000 (10:54 +0100)
source of 'zombie-' domains.

Signed-off-by: Steven Hand <steven@xensource.com>
xen/common/grant_table.c

index 695caa17a5c70a6b9b99825d848bcbdd3aa41c48..d9e64d3d561fd43853bdc9bf61d0360970d9fe2f 100644 (file)
@@ -781,7 +781,7 @@ gnttab_transfer(
          * headroom.  Also, a domain mustn't have PGC_allocated
          * pages when it is dying.
          */
-        if ( unlikely(test_bit(DOMFLAGS_DYING, &e->domain_flags)) ||
+        if ( unlikely(test_bit(_DOMF_dying, &e->domain_flags)) ||
              unlikely(e->tot_pages >= e->max_pages) ||
              unlikely(!gnttab_prepare_for_transfer(e, d, gop->ref)) )
         {